<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<html>
<head>
	<title>评审专家信息管理</title>
	<meta name="decorator" content="default"/>
	<script type="text/javascript">
		$(document).ready(function() {
			$("#btnImport").click(function(){
				$.jBox($("#importBox").html(), {title:"导入数据", buttons:{"关闭":true}, 
					bottomText:"导入文件不能超过5M，仅允许导入“xls”或“xlsx”格式文件！"});
			});
		});
		function page(n,s){
			$("#pageNo").val(n);
			$("#pageSize").val(s);
			$("#searchForm").submit();
        	return false;
        }
	</script>
</head>
<body>
	<div id="importBox" class="hide">
		<form id="importForm" action="${ctx}/zx/expertsInfo/import" method="post" enctype="multipart/form-data"
			class="form-search" style="padding-left:20px;text-align:center;" onsubmit="loading('正在导入，请稍等...');"><br/>
			<input id="uploadFile" name="file" type="file" style="width:330px"/><br/><br/>　　
			<input id="btnImportSubmit" class="btn btn-primary" type="submit" value="   导    入   "/>
			<a href="${ctx}/zx/expertsInfo/import/template">下载模板</a>
		</form>
	</div>
	<ul class="nav nav-tabs">
		<li class="active"><a href="${ctx}/zx/expertsInfo/">评审专家信息列表</a></li>
		<shiro:hasPermission name="zx:experts:edit"><li><a href="${ctx}/zx/expertsInfo/form">评审专家信息添加</a></li></shiro:hasPermission>
	</ul>
	<form:form id="searchForm" modelAttribute="expertsInfo" action="${ctx}/zx/expertsInfo/" method="post" class="breadcrumb form-search">
		<input id="pageNo" name="pageNo" type="hidden" value="${page.pageNo}"/>
		<input id="pageSize" name="pageSize" type="hidden" value="${page.pageSize}"/>
		<ul class="ul-form">
			<li><label>专家评价：</label>
				<form:select path="evaluateGrade" cssStyle="width: 177px;">
					<form:options items="${fns:getDictList('evaluate_grade')}" itemLabel="label" itemValue="value" htmlEscape="false"/>
				</form:select>
			</li>
			<li><label>专家分类：</label><sys:treeselect id="expertsType" name="expertsType.id" value="${expertsInfo.expertsType.id}" labelName="expertsType.name" labelValue="${expertsInfo.expertsType.name}" 
				title="专家分类" url="/zx/expertsType/treeData?type=2" cssClass="input-small" allowClear="true" notAllowSelectParent="true"/></li>
			<li class="clearfix"></li>
			<li><label>专家姓名：</label>
				<form:input path="name" htmlEscape="false" maxlength="100" class="input-medium"/>
			</li>
			
			<li><label>职称：</label>
				<form:input path="positional" htmlEscape="false" maxlength="100" class="input-medium"/>
			</li>
			<li><label>手机号码：</label>
				<form:input path="phone" htmlEscape="false" maxlength="100" class="input-medium"/>
			</li>
			
			<li class="btns">
				<input id="btnSubmit" class="btn btn-primary" type="submit" value="查询"/>
				<input id="btnImport" class="btn btn-primary" type="button" value="导入"/></li>
			</li>
			
			<li class="clearfix"></li>
		</ul>
	</form:form>
	<sys:message content="${message}"/>
	<table id="contentTable" class="table table-striped table-bordered table-condensed">
		<thead>
			<tr>
				<th>专家姓名</th>
				<th>分类</th>
				<th>专家评价</th>
				<th>参与评标专业</th>				
				<th>手机号码</th>
				<th>身份证号码</th>
				<th>年龄</th>				
				<th>职称</th>
				<!-- <th>更新时间</th> -->
				<shiro:hasPermission name="zx:experts:edit"><th>操作</th></shiro:hasPermission>
			</tr>
		</thead>
		<tbody>
		<c:forEach items="${page.list}" var="expertsInfo">
			<tr>
				<td>
					<a href="${ctx}/zx/expertsInfo/form?id=${expertsInfo.id}">${expertsInfo.name}</a>
				</td>
				<td>${expertsInfo.expertsType.name}</td>
				<td  title="${expertsInfo.evaluateContent}">${fns:getDictLabel(expertsInfo.evaluateGrade, 'evaluate_grade', '')}</td>
				<td>
					${expertsInfo.bep}
				</td>
			
				<td>
					${expertsInfo.phone}
				</td>
				<td>
					${expertsInfo.card}
				</td>
				<td>
					${expertsInfo.age}
				</td>
				
				<td>
					${expertsInfo.positional}
				</td>
				<%-- <td>
					<fmt:formatDate value="${expertsInfo.updateDate}" pattern="yyyy-MM-dd HH:mm:ss"/>
				</td> --%>
				<shiro:hasPermission name="zx:experts:edit"><td>
    				<a href="${ctx}/zx/expertsInfo/form?id=${expertsInfo.id}">修改</a>
					<a href="${ctx}/zx/expertsInfo/delete?id=${expertsInfo.id}" onclick="return confirmx('确认要删除该评审专家信息吗？', this.href)">删除</a>
				</td></shiro:hasPermission>
			</tr>
		</c:forEach>
		</tbody>
	</table>
	<div class="pagination">${page}</div>
</body>
</html>